import Vue from 'vue';

import { hasPermission, hasNoPermission, hasAnyPermission, hasRole, hasAnyRole, hasUserId, hasUserType } from './permission';

const Plugins = [
  hasPermission,
  hasNoPermission,
  hasAnyPermission,
  hasRole,
  hasAnyRole,
  hasUserId,
  hasUserType,
];

Plugins.map((plugin) => {
  Vue.use(plugin);
});

export default Vue;
